﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace laba2.Entity
{
   public abstract class Entity
   {
       [Key]
       protected  int _id;

       protected Entity()
       {
       }

       public Entity(int id)
       {
           _id = id;
       }

       public int Id
       {
           get { return _id; }
           set { _id = value; }
       }
   }
} 
